<?php
	include("HTML_top.php");
	include("header.php");
?>

<h2>Add CorkBoard</h2>
<form action="index.php" method="post" onsubmit="return validate_createCB(this);">

Title:<br/>
<input type="text" name="createCB_title" size="50" /><br/><br/>

Category:<br/>
<select name="createCB_cat">

<?php

	include("conn.php");
	connectToDB();
	
	$q = mysql_query("SELECT * FROM category");
	
	while ($r = mysql_fetch_array($q))
		echo '<option>'.$r['name'].'</option>';

?>

</select><br/><br/>

Visibility:<br/>
<input type="radio" name="createCB_vis" value="Public" checked="yes" />Public<br/>
<input type="radio" name="createCB_vis" value="Private" />Private&nbsp;&nbsp;&nbsp;Password: <input type="text" name="createCB_pass" size="25" /><br/><br/>

<input type="submit" value="Add" /> 

</form>

<?php
	include("footer.php");
	include("HTML_bottom.php");
?>
